home *** CD-ROM | disk | FTP | other *** search
/ PC User 2003 September / Australian PC User - September 2003 (CD1).iso / magstuff / web / files / psp801ev.exe / Data1.cab / Preset_BallsAndBubbles_Soap_ < prev    next >
Encoding:
Text File  |  2003-06-06  |  3.0 KB  |  84 lines

  1. from JascApp import *
  2.  
  3. def ScriptProperties():
  4.     return {
  5.         'Author': 'Kris Zaklika',
  6.         'Copyright': 'Copyright (C) 2002-2003, Jasc Software Inc., All Rights Reserved.',
  7.         'Description': 'Soap bubbles all over the image',
  8.         'Host': 'Paint Shop Pro',
  9.         'Host Version': '8.00'
  10.         }
  11.  
  12. def Preset_BallsAndBubbles():
  13.     return {
  14.         'Illumination': {
  15.             'MaxAmbience': 100, 
  16.             'MinAmbience': 0, 
  17.             'LightList': [{
  18.                 'BubbleLight': App.Constants.Boolean.false, 
  19.                 'Color': (255,255,255), 
  20.                 'Direction': (0.320766,0.439425,0.839056), 
  21.                 'HighlightSize': 37
  22.                 },{
  23.                 'BubbleLight': App.Constants.Boolean.true, 
  24.                 'Color': (192,192,192), 
  25.                 'Direction': (0.402707,0.757963,-0.513147), 
  26.                 'HighlightSize': 14
  27.                 },{
  28.                 'BubbleLight': App.Constants.Boolean.false, 
  29.                 'Color': (192,192,192), 
  30.                 'Direction': (-0.02265,0.01735,-0.999593), 
  31.                 'HighlightSize': 0
  32.                 }]
  33.             }, 
  34.         'Mode': App.Constants.CountType.Multiple, 
  35.         'Multiple': {
  36.             'AverageSize': 24, 
  37.             'Coverage': 82, 
  38.             'CreateMethod': App.Constants.BubbleCreateMethod.Intersecting, 
  39.             'SizeVariation': 43
  40.             }, 
  41.         'RandomSeed': 36, 
  42.         'RandomizePlacement': App.Constants.Boolean.false, 
  43.         'Single': {
  44.             'MaxPossibleSize': App.Constants.Boolean.true
  45.             }, 
  46.         'Surface': {
  47.             'Material': {
  48.                 'Color': None, 
  49.                 'Pattern': None, 
  50.                 'Gradient': {
  51.                     'Name': 'Black-white', 
  52.                     'GradientType': App.Constants.GradientType.Radial, 
  53.                     'Angle': 0, 
  54.                     'RepeatCount': 0, 
  55.                     'RepeatType': App.Constants.RepeatType.Pad, 
  56.                     'ColorStops': None, 
  57.                     'TransparencyStops': [], 
  58.                     'CenterPoint': (0.5,0.5), 
  59.                     'FocalPoint': (0.5,0.5), 
  60.                     'Invert': App.Constants.Boolean.true
  61.                     }, 
  62.                 'Texture': None, 
  63.                 'Identity': 'Material'
  64.                 }, 
  65.             'BumpMap': {
  66.                 'Active': App.Constants.Boolean.false
  67.                 }, 
  68.             'EnvironmentMap': {
  69.                 'FringeType': 14493, 
  70.                 'Active': App.Constants.Boolean.true, 
  71.                 'FringeSpacing': 15, 
  72.                 'PatternOpacity': 69, 
  73.                 'EnvironmentType': App.Constants.BubbleMapType.Diffraction
  74.                 }, 
  75.             'Gloss': 100, 
  76.             'Opacity': 21, 
  77.             'Shininess': 100
  78.             }
  79.         }
  80.  
  81. def Do(Environment):
  82.     App.Do( Environment, 'BallsAndBubbles',         Preset_BallsAndBubbles())
  83.  
  84.